﻿using System.Collections.ObjectModel;

namespace Bookworm.Core
{
    public sealed class Image
    {
        public string Path { get; set; }
        public ImageType Type { get; set; }
        public int? Height { get; set; }
        public int? Width { get; set; }
    }

    public sealed class ImageCollection : Collection<Image>
    {
        public void Add(string path, ImageType type, int? width, int? height)
        {
            var image = new Image();
            image.Path = path;
            image.Type = type;
            image.Height = height;
            image.Width = width;
            Add(image);
        }
    }

    public enum ImageType
    {
        FrontCover,
        BackCover,
        Author,
        Other
    }
}
